﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class DeliveryRobot : Robot
    {
        private string hours;

        public string Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }

        public DeliveryRobot(string name, string hours) : base(name)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0},我能工作{1}个小时", base.Name, this.hours);
        }
    }
}
